package com.csb.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MvcConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("index").setViewName("index");
        registry.addViewController("main").setViewName("page/main");
        registry.addViewController("asset_srch").setViewName("page/asset_srch");
        registry.addViewController("asset_type_rate").setViewName("page/asset_type_rate");
        registry.addViewController("asset_worthless").setViewName("page/asset_worthless");
        registry.addViewController("depreciation").setViewName("page/depreciation");
        registry.addViewController("person_apply").setViewName("page/person_apply");
        registry.addViewController("user_info").setViewName("page/user_info");
        registry.addViewController("user_list").setViewName("page/user_list");
        registry.addViewController("userAro_list").setViewName("page/userAro_list");
        registry.addViewController("aro_list").setViewName("page/aro_list");
        registry.addViewController("error404").setViewName("error/error404");
        registry.addViewController("user_apply").setViewName("page/user_apply");
        registry.addViewController("asset_classify").setViewName("page/asset_classify");
        registry.addViewController("person_asset").setViewName("page/person_asset");
    }
}
